﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Migracion.Process
{
    public static class MigracionExtenssion
    {
        public static string ToStringSAE(this DateTime dateTime)
        {
            return dateTime.ToString("yyyy-MM-ddThh:mm:ss");
        }

        public static string ToStringSAE(this DateTime? dateTime)
        {
            string retVal = "T";

            if (dateTime.HasValue)
            {
                retVal = dateTime.Value.ToStringSAE();
            }

            return retVal;
        }
    }
}
